﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sexybeauty.Core.Inf.LogicEntity
{
    public enum Gender
    {
        Male = 0,
        Female = 1
    }
    public enum SocialRole
    {
        /// <summary>
        /// 其他
        /// </summary>
        Other = 0,
        /// <summary>
        /// 大学生
        /// </summary>
        Undergraduate = 1,
        /// <summary>
        /// 公司职员
        /// </summary>
        Staffer = 2
    }
    public enum AreaCode
    {
        Other = 0,
        YuZhong = 1,
        ShaPingBa = 2,
        DaXueCheng = 3,
        JiangBei = 4,
        YuBei = 5,
        JiuLongPo = 6,
        BeiBei = 7,
        DaDuKou = 8,
        NanAn = 9,
        BaNan = 10,
        LiangJiangXinQu = 11,
        ChongQingZhouBian = 12
    }
    public enum CustomerFileType 
    {
        Photo = 0
    }
    public enum CustomerFileLevel
    { 
        Public = 0,
        Secret = 1
    }
    public enum Opinion
    { 
        Bad = 0,
        Normal = 1,
        Good = 2
    }
    public enum DiscussType
    { 
        ForPhoto = 0
    }
    public enum LockStreamType
    { 
        Payment = 0,
        Expense = 1
    }

    public static class EnumValueMapping
    {
        public static string Mapping(this Gender gender)
        {
            switch (gender) { 
                default:
                case Gender.Female:
                    return "女";
                case Gender.Male:
                    return "男";
            }
        }
        public static string Mapping(this AreaCode areaCode)
        {
            switch (areaCode)
            {
                case AreaCode.BaNan:
                    return "巴南区";
                case AreaCode.BeiBei:
                    return "北碚区";
                case AreaCode.DaDuKou:
                    return "大渡口区";
                case AreaCode.DaXueCheng:
                    return "大学城";
                case AreaCode.JiangBei:
                    return "江北区";
                case AreaCode.JiuLongPo:
                    return "九龙坡区";
                case AreaCode.NanAn:
                    return "南岸区";
                case AreaCode.ShaPingBa:
                    return "沙坪坝区";
                case AreaCode.YuBei:
                    return "渝北区";
                case AreaCode.YuZhong:
                    return "渝中区";
                case AreaCode.LiangJiangXinQu:
                    return "两江新区";
                case AreaCode.ChongQingZhouBian:
                    return "重庆周边";
                default:
                case AreaCode.Other:
                    return "其他地区";
            }
        }
    }

}
